package cn.wolfcode.crm.util;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class JsonResult {
	private boolean succeed = true;
	private String errorMsg;

	private String msg = "操作成功";
	private boolean success = true;

	public void markMsg(String errorMsg){
		this.errorMsg = errorMsg;
		this.succeed = false;
	}

	public JsonResult mark(String msg) {
		success = false;
		this.msg = msg;
		return this;
	}
}
